package com.example.ebusinessvue.controller.admin;

import com.example.ebusinessvue.common.http.ResponseResult;
import com.example.ebusinessvue.entity.AUserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/admin")

public class AuserController {
    @Autowired
    private AuserService aUserService;
    @RequestMapping

    public ResponseResult<Map<String,String>> login(@RequestBody AUserEntity aUserEntity){
        return aUserService.login(aUserEntity);
    }
}
